package com.longlong.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.longlong.entity.WxGzhUser;
import com.longlong.mapper.WxGzhUserMapper;
import com.longlong.service.AdminGzhUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public class AdminGzhUserServiceImpl implements AdminGzhUserService {

    @Autowired
    private WxGzhUserMapper wxGzhUserMapper;

    @Override
    public List<WxGzhUser> wxGzhUsers(@RequestParam("current") int current,
                                      @RequestParam("size") int size) {
        Page<WxGzhUser> page = new Page<>(1,5);
        //按照页数，大小查询的内容
        wxGzhUserMapper.selectPage(page,null);
        //页数
        page.getTotal();
        return null;
    }

    @Override
    public int wxGzhUserDeleteById(int id) {
        return wxGzhUserMapper.deleteById(id);
    }

}
